{% extends "base.html" %}

{% block title %}编辑家长{% endblock %}

{% block content %}
<div class="row">
    <div class="col-md-8 offset-md-2">
        <h2 class="mb-4">编辑家长</h2>
        <form method="POST">
            <div class="mb-3">
                <label for="name" class="form-label">姓名</label>
                <input type="text" class="form-control" id="name" name="name" value="{{ parent.name }}" required>
            </div>
            <div class="mb-3">
                <label for="phone" class="form-label">联系电话</label>
                <input type="tel" class="form-control" id="phone" name="phone" value="{{ parent.phone }}" required>
            </div>
            <div class="mb-3">
                <button type="submit" class="btn btn-primary">保存</button>
                <a href="{{ url_for('list_parents') }}" class="btn btn-secondary">返回</a>
            </div>
        </form>
    </div>
</div>
{% endblock %} 